<?php
/**
 * Created by PhpStorm.
 * User: Hongjw
 * Date: 2018/3/18
 * Time: 10:00
 */

namespace App\Http\Controllers\Admin\Cgs;


use App\Http\Controllers\Controller;
use App\Model\Cgs\Placeholder;
use Illuminate\Http\Request;
use Yajra\DataTables\Facades\DataTables;

class PlaceholderController extends Controller
{

    public function showIndex(Request $request,Placeholder $placeholder){
        if($request->ajax()){
            return DataTables::of($placeholder->query())->make();
        }
        return view('admin.cgs.placeholder.index');
    }
}